﻿CREATE FUNCTION [dbo].[TodayDate]() 
RETURNS smalldatetime
AS
BEGIN
	DECLARE @datNowDate smalldatetime

	SET @datNowDate = cast( floor( cast(GETDATE() as float) ) as smalldatetime)
	RETURN @datNowDate
END

